#pragma once
#include "Resource.h"
#include "simplelistctrl.h"
#ifdef _WIN32_WCE
#error "CDHtmlDialog is not supported for Windows CE."
#endif 
#include "BaseForm.h"

// CStockNetWorthDlg dialog

class CStockNetWorthForm : public CBaseForm
{
	DECLARE_DYNCREATE(CStockNetWorthForm)

public:
	static CBaseForm*  CreateShow(CWnd* pParent)
	{
		CStockNetWorthForm* pwnd = new CStockNetWorthForm(pParent);
		pwnd->Create(CStockNetWorthForm::IDD,pParent);
		pwnd->ModifyStyle(0, WS_EX_CONTROLPARENT);
		pwnd->ShowWindow(SW_SHOW);
		return pwnd;			

	}
	CStockNetWorthForm(CWnd* pParent = NULL);   // standard constructor
	virtual ~CStockNetWorthForm();
// Overrides
	//HRESULT OnButtonOK(IHTMLElement *pElement);
	//HRESULT OnButtonCancel(IHTMLElement *pElement);

// Dialog Data
	enum { IDD = IDD_DIALOG_STOCK_NETWORTHSUM};//, IDH = IDR_HTML_STOCKNETWORTHDLG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	CSimpleListCtrl m_listctrl;
	CSimpleListCtrl m_stocklistctrl;

	DECLARE_MESSAGE_MAP()

	virtual CString GetTitle() const;

	virtual BOOL AllowClose();

	//	DECLARE_DHTML_EVENT_MAP()
};
